home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d22 / ds320.arc / MS_MOUSE.DEF < prev    next >
Encoding:
Text File  |  1989-02-09  |  16.9 KB  |  365 lines

  1. ;
  2. ;       Directory Scanner, Ver. 3.00, Microsoft pop-up mouse menus
  3. ;       by Cy Phillips 7-6-86, Revised 12-2-86, 1-18-87, 2-28-87,
  4. ;       4-25-87, 6-26-87.
  5. ;       Copyright (c) 1986, 1987 by Cy Phillips, all rights reserved.
  6. ;       This program is intended for non-commercial, public domain use,
  7. ;       and may be used, copied, and distributed subject to this license.
  8. ;       The program is supplied "AS IS," and without any warranties,
  9. ;       express or implied, including fitness or suitability for a
  10. ;       particular purpose.  Please direct all questions, suggestions,
  11. ;       and problem reports to the author at:
  12. ;
  13. ;       Home: 608 Falmouth Drive   Office: McGuire, Woods, Battle & Boothe
  14. ;             Falmouth, VA  22405          P.O. Box 9346
  15. ;                                          McLean, VA  22102
  16. ;       Telephones: Home (703) 371-3191; Office (202) 356-2200
  17. ;       GEnie mail address: CPHILLIPS
  18. ;
  19.  
  20. ;       Set up initial labels for mouse commands
  21.  
  22.         begin lfbtn,rtbtn,btbtn,lfmot,rtmot,upmot,dnmot,4,8
  23.  
  24. ;       -------------------- Left Button ---------------------------
  25.  
  26. lfbtn: match 25,29,,"Press any key to",ent,lfbtn2  ;Check for continue prompt
  27. lfbtn2: match 24,4,,"FILE ATTRIB",ent,lfbtn3       ;Check for file attributes prompt
  28. lfbtn3: match 24,4,,"DIR ATTRIB",ent,lfbtn4        ;Check for directory attributes prompt
  29. lfbtn4: match 24,3,,"COLOR",ent,lfbtn5             ;Check for color changes prompt
  30. lfbtn5: match 23,1,,"To return to",ent,lfbtn6      ;Check for command prompt
  31. lfbtn6: match 24,4,,"COPY TAGGED",ent,lfbtn7       ;Check for copy tagged prompt
  32. lfbtn7: match 24,3,,"DRIVE CHANGE",ent,lfbtn8      ;Check for drive change prompt
  33. lfbtn8: match 24,3,,"DELETE",ent,lfbtn9            ;Check for delete tagged prompt
  34. lfbtn9: match 24,5,,"FIND FILE",ent,lfbtn10        ;Check for find file prompt
  35. lfbtn10: match 25,1,,"Files",ent,lfbtn11           ;Check for program limits prompt
  36. lfbtn11: match 24,4,,"MOVE",ent,lfbtn12            ;Check for move tagged files prompt
  37. lfbtn12: match 24,4,,"RENAME",ent,lfbtn13          ;Check for rename prompt
  38. lfbtn13: match 24,3,,"SELECT",ent,lfbtn14          ;Check for select/sort prompt
  39. lfbtn14: match 24,3,,"EXECUTE",ent,lfbtn15         ;Check for execute files prompt
  40. lfbtn15: match 25,1,,"DS Ver",ent,lfbtn16          ;Check for help screen
  41. lfbtn16: match 24,1,,"ESC",ent,lfbtn17             ;Check for linking directories option
  42. lfbtn17: match 24,3,,"F10",ent,lfbtn18             ;Check for macros option
  43. lfbtn18: match 22,3,,"CR",ent,lfbtn19              ;Check for change editor/lister option
  44. ent: type 13                                       ;Yes - Type enter
  45. lfbtn19: match 25,1,,"Command",ext,lfbtn20         ;Check for list prompt
  46. ext: type 88                                       ;Yes - Type X
  47. lfbtn20: match 25,1,,"Free:",keyf1,nul             ;Check for status line
  48.  
  49. ;       -------------------- Right button ------------------------
  50.  
  51. rtbtn: match 24,4,,"FILE ATTRIB",can,rtbtn2        ;Check for file attributes prompt
  52. rtbtn2: match 24,4,,"DIR ATTRIB",can,rtbtn3        ;Check for directory attributes prompt
  53. rtbtn3: match 24,3,,"BACKUP",can,rtbtn4            ;Check for backup prompt
  54. rtbtn4: match 24,3,,"COMMAND",can,rtbtn5           ;Check for command prompt
  55. rtbtn5: match 24,4,,"COPY TAGGED",can,rtbtn6       ;Check for copy tagged prompt
  56. rtbtn6: match 24,3,,"DRIVE CHANGE",can,rtbtn7      ;Check for drive change prompt
  57. rtbtn7: match 24,3,,"DELETE",can,rtbtn8            ;Check for delete tagged prompt
  58. rtbtn8: match 24,3,,"DIRECTORY",can,rtbtn9         ;Check for directory add/delete prompt
  59. rtbtn9: match 24,5,,"FIND FILE",can,rtbtn10        ;Check for find file prompt
  60. rtbtn10: match 25,1,,"Files",can,rtbtn11           ;Check for program limits prompt
  61. rtbtn11: match 24,4,,"MOVE",can,rtbtn12            ;Check for move tagged files prompt
  62. rtbtn12: match 24,4,,"RENAME",can,rtbtn13          ;Check for rename prompt
  63. rtbtn13: match 24,3,,"SELECT",can,rtbtn14          ;Check for select/sort prompt
  64. rtbtn14: match 24,3,,"EXECUTE",can,rtbtn15         ;Check for execute files prompt
  65. rtbtn15: match 1,2,,"Esc:",can,rtbtn16             ;Check for help menu
  66. rtbtn16: match 24,3,,"COLOR",can,rtbtn17           ;Check for color changes prompt
  67. rtbtn17: match 24,1,,"ESC",can,rtbtn18             ;Check for linking directories option
  68. rtbtn18: match 24,3,,"F10",can,rtbtn19             ;Check for macros option
  69. rtbtn19: match 22,3,,"CR",can,rtbtn20              ;Check for change editor/lister option
  70. can: type esc                                      ;Yes - Type escape
  71. rtbtn20: match 25,1,,"Free:",keyf2,nul             ;Check status line
  72.  
  73. ;       --------------------- Both buttons ------------------------
  74.  
  75. ;       If status line execute mouse menu else nothing
  76.  
  77. btbtn:  match 25,1,,"Free:",mmen,nul               ;Check status line
  78.  
  79. ;       -------------------- Mouse left -----------------------
  80.  
  81. lfmot: match 25,1,,"Free:",lchar,lfmot2            ;Check status line
  82. lfmot2: match 25,1,,"Command",lchar,nul            ;Check for list prompt
  83. lchar: type 0,75                                   ;Yes - Move left
  84.  
  85. ;       ------------------- Mouse right -----------------------
  86.  
  87. rtmot: match 25,1,,"Free:",rchar,rtmot2            ;Check status line
  88. rtmot2: match 25,1,,"Command",rchar,nul            ;Check for list prompt
  89. rchar: type 0,77                                   ;Yes - Move right
  90.  
  91. ;       --------------------- Mouse up -----------------------
  92.  
  93. upmot: match 25,1,,"Free:",uline,upmot2            ;Check status line
  94. upmot2: match 25,1,,"Command",uline,upmot3         ;Check for list prompt
  95. upmot3: match 24,1,,"ESC",uline,upmot4             ;Check for linking directories option
  96. upmot4: match 24,3,,"F10",uline,upmot5             ;Check for macros prompt
  97. upmot5: match 22,3,,"CR",uline,upmot6              ;Check for change editor/lister prompt
  98. uline: type 0,72                                   ;Yes - Move up one file
  99. upmot6: match 24,3,,"DIRECTORY",updir,nul          ;Check for directory add/delete/change prompt
  100. updir: type 0,59                                   ;Yes - Move up one directory
  101.  
  102. ;       ------------------- Mouse down -----------------------
  103.  
  104. dnmot: match 25,1,,"Free:",dline,dnmot2            ;Check status line
  105. dnmot2: match 25,1,,"Command",dline,dnmot3         ;Check for list prompt
  106. dnmot3: match 24,1,,"ESC",dline,dnmot4             ;Check for linking directories option
  107. dnmot4: match 24,3,,"F10",dline,dnmot5             ;Check for macros prompt
  108. dnmot5: match 22,3,,"CR",dline,dnmot6              ;Check for change editor/lister prompt
  109. dline: type 0,80                                   ;Yes - Move down one file
  110. dnmot6: match 24,3,,"DIRECTORY",dndir,nul          ;Check for directory add/delete/change prompt
  111. dndir: type 0,60                                   ;Yes - Move down one directory
  112.  
  113. ; Mouse menu - selected by pressing both buttons 
  114.  
  115. mmen:   popup 1,1,048    
  116.         text "╔═════════ MOUSE MENU ═════════╗"
  117.         text "║  Cancel Menu    Exit Program ║"
  118.         text "║   File Menu         Help     ║"
  119.         text "║ Directory Menu   Mouse Help  ║"
  120.         text "║   Drive Menu    Screen Menu  ║"
  121.         text "║  Key Commands   Program Lmts ║"
  122.         text "║     Macros       Dir Links   ║"
  123.         text "║ Change Editor/Lister Options ║"
  124.         text "╚══════════════════════════════╝"
  125.         select 2,2,16
  126.         select 3,2,16,fmen
  127.         select 4,2,16,dmen
  128.         select 5,2,16,drmen
  129.         select 6,2,16,key?
  130.         select 7,2,16,macmen
  131.         select 8,2,30,keyctrlE
  132.         select 2,18,14,keyf9
  133.         select 3,18,14,keyf10
  134.         select 4,18,14,mousehlp    
  135.         select 5,18,14,cmen
  136.         select 6,18,14,keyctrlL
  137.         select 7,18,14,lnkmen
  138.         pend
  139.  
  140. ; Directory menu selected from mouse menu 
  141.  
  142. dmen:  popup 1,33,072    
  143.         text "╔══════════ DIRECTORY MENU ═══════════╗"
  144.         text "║   Cancel Menu           Backup      ║"
  145.         text "║ Modify Directory   Directory Rescan ║"
  146.         text "║ Volume ID Toggle   Change Attribute ║"
  147.         text "║  Root Directory     Last Directory  ║"
  148.         text "║    Scroll Up         Scroll Down    ║"
  149.         text "║  Top Directory     Bottom Directory ║"
  150.         text "╚═════════════════════════════════════╝"
  151.         select 2,2,18
  152.         select 3,2,18,keyctrlD
  153.         select 4,2,18,keyctrlV
  154.         select 5,2,18,keyf3 
  155.         select 6,2,18,keyf7 
  156.         select 7,2,18,keyf5
  157.         select 2,21,18,keyB
  158.         select 3,21,18,keyaltR 
  159.         select 4,21,18,keyctrlA
  160.         select 5,21,18,keyf4 
  161.         select 6,21,18,keyf8
  162.         select 7,21,18,keyf6   
  163.         pend
  164.  
  165. ; File menu selected from mouse menu
  166.  
  167. fmen: popup 1,1,072    
  168.         text "╔════ FILE MENU ═══╗"
  169.         text "║   Cancel Menu    ║"
  170.         text "║  List All Files  ║"
  171.         text "║   Execute File   ║"
  172.         text "║    View File     ║"
  173.         text "║    Edit File     ║"
  174.         text "║     Tag File     ║"
  175.         text "║   Move Tagged    ║"
  176.         text "║  Delete Tagged   ║"
  177.         text "║  Print Tagged    ║"
  178.         text "║   Copy Tagged    ║"
  179.         text "║ Attribute Tagged ║"
  180.         text "║    Find File     ║"  
  181.         text "║   Rename File    ║"
  182.         text "║  Tag All Files   ║"
  183.         text "║   Untag A File   ║"
  184.         text "║ Untag All Files  ║"
  185.         text "║  Select & Sort   ║"
  186.         text "║  Enter Command   ║"
  187.         text "║     Page Up      ║"
  188.         text "║    Page Down     ║"
  189.         text "║    First File    ║"
  190.         text "║    Last File     ║"
  191.         text "╚══════════════════╝"
  192.         select 2,2,18
  193.         select 3,2,18,keycr
  194.         select 4,2,18,keyX
  195.         select 5,2,18,keyL
  196.         select 6,2,18,keyE
  197.         select 7,2,18,keyT
  198.         select 8,2,18,keyM
  199.         select 9,2,18,keyaltD
  200.         select 10,2,18,keyP
  201.         select 11,2,18,keyaltC
  202.         select 12,2,18,keyA
  203.         select 13,2,18,keyF
  204.         select 14,2,18,keyR
  205.         select 15,2,18,keyaltT
  206.         select 16,2,18,keyU   
  207.         select 17,2,18,keyaltU
  208.         select 18,2,18,keyaltS
  209.         select 19,2,18,keyC   
  210.         select 20,2,18,keypgup
  211.         select 21,2,18,keypgdn
  212.         select 22,2,18,keyhm 
  213.         select 23,2,18,keyend
  214.         pend
  215.  
  216. ; Color menu selected from mouse menu
  217.  
  218. cmen:  popup 12,27,072    
  219.         text "╔═ SCREEN MENU ═╗"
  220.         text "║  Cancel Menu  ║"
  221.         text "║ Color Changes ║"
  222.         text "║ Screen Refrsh ║"
  223.         text "║ EGA 43/25 Lns ║"
  224.         text "╚═══════════════╝"
  225.         select 2,2,15
  226.         select 3,2,15,keyaltK
  227.         select 4,2,15,keyS     
  228.         select 5,2,15,keyaltE
  229.         pend
  230.  
  231. ; Drive menu selected from mouse menu
  232.  
  233. drmen: popup 1,1,072    
  234.      text "╔══ DRIVE MENU ═══╗"
  235.      text "║   Cancel Menu   ║"  
  236.      text "║ Select Drive A: ║"
  237.      text "║ Select Drive B: ║"
  238.      text "║ Select Drive C: ║"
  239.      text "║ Select Drive D: ║"
  240.      text "║ Show Free Space ║"
  241.      text "╚═════════════════╝"
  242.      select 2,2,17
  243.      select 3,2,17,keyDA
  244.      select 4,2,17,keyDB
  245.      select 5,2,17,keyDC
  246.      select 6,2,17,keyDD
  247.      select 7,2,17,keyaltF
  248.      pend
  249.  
  250. ; Mouse help menu selected from mouse menu
  251.  
  252. mousehlp: popup 1,1,064     
  253.         text "╔════════════════ MOUSE  HELP ═════════════════╗"
  254.         text "║                                              ║"
  255.         text "║                 Cancel Menu                  ║"
  256.         text "║                                              ║"
  257.         text "║    Left button  - Moves Up One Directory     ║"
  258.         text "║   Right button - Moves Down One Directory    ║"
  259.         text "║      Both buttons - Displays Mouse Menu      ║"
  260.         text "║                                              ║"
  261.         text "║   Moving the mouse up, down, left, or        ║"
  262.         text "║   right will move the file cursor in the     ║"
  263.         text "║   same direction that the mouse is moved.    ║" 
  264.         text "║                                              ║"
  265.         text "║   When a command is selected, click the      ║"
  266.         text "║   left button for an enter, and the right    ║"
  267.         text "║   button for a cancel.                       ║"
  268.         text "║                                              ║"
  269.         text "║   When viewing a file, moving the mouse      ║"
  270.         text "║   will scroll the text in the same           ║"
  271.         text "║   direction that the mouse is moved.         ║"
  272.         text "║   Exit by clicking the left button.          ║"
  273.         text "╚══════════════════════════════════════════════╝"
  274.         select 3,2,46
  275.         pend
  276.  
  277. ; Macros menu selected from mouse menu          
  278.  
  279. macmen: popup 1,33,072    
  280.         text "╔════ MACROS MENU ════╗"
  281.         text "║     Cancel Menu     ║"
  282.         text "║  Alt-Function Keys  ║"
  283.         text "║  Ctrl-Function Keys ║"
  284.         text "║ Shift-Function Keys ║"
  285.         text "╚═════════════════════╝"
  286.         select 2,2,21
  287.         select 3,2,21,keyaltf10
  288.         select 4,2,21,keyctrlf10
  289.         select 5,2,21,keyshftf10
  290.         pend
  291.  
  292. ; Directory links menu selected from mouse menu 
  293.  
  294. lnkmen:  popup 1,33,072    
  295.         text "╔══ DIRECTORY LINKS MENU ══╗"
  296.         text "║       Cancel Menu        ║"
  297.         text "║     Number Key Links     ║"
  298.         text "║   Alt-Number Key Links   ║"
  299.         text "╚══════════════════════════╝"
  300.         select 2,2,26
  301.         select 3,2,26,key0    
  302.         select 4,2,26,keyalt0 
  303.         pend
  304.  
  305. ;               --- Key Commands ---
  306.  
  307. keyf1: type 0,59                             ;Move up one directory
  308. keyf2: type 0,60                             ;Move down one directory
  309. keyf3: type 0,61                             ;Move to root directory
  310. keyf4: type 0,62                             ;Move to last directory
  311. keyf5: type 0,63                             ;Move to top directory
  312. keyf6: type 0,64                             ;Move to btm directory
  313. keyf7: type 0,65                             ;Scroll up
  314. keyf8: type 0,66                             ;Scroll down
  315. keyf9: type 0,67                             ;Exit in current directory
  316. keyf10: type 0,68                            ;Display context sensitive help
  317. keyaltf10: type 0,113                        ;Display/change alt-function key macros
  318. keyctrlf10: type 0,103                       ;Display/change ctrl-function key macros
  319. keyshftf10: type 0,93                        ;Display/change shift-function key macros
  320. keypgup: type 0,73                           ;Display previous files
  321. keypgdn: type 0,81                           ;Display next files
  322. keyhm: type 0,71                             ;Move to first file
  323. keyend: type 0,79                            ;Move to last file
  324. key0: type 48                                ;Display/change number key links
  325. keyalt0: type 0,129                          ;Display/change alt-number key links
  326. keyA: type 65                                ;Change file attributes
  327. keyctrlA: type 1                             ;Change directory attributes
  328. keyB: type 66                                ;Backup
  329. keyC: type 67                                ;Enter command
  330. keyaltC: type 0,46                           ;Copy tagged files
  331. keyD: type 68                                ;Drive change
  332. keyDA: type 68,"A:",13                       ;Change to drive a:
  333. keyDB: type 68,"B:",13                       ;Change to drive b:
  334. keyDC: type 68,"C:",13                       ;Change to drive c:
  335. keyDD: type 68,"D:",13                       ;Change to drive d:
  336. keyaltD: type 0,32                           ;Delete tagged files
  337. keyctrlD: type 4                             ;Directory add/delete
  338. keyE: type 69                                ;Edit file
  339. keyaltE: type 0,18                           ;EGA 43/25 line toggle
  340. keyctrlE: type 5                             ;Editor/Lister change
  341. keyF: type 70                                ;Find file
  342. keyaltF: type 0,33                           ;Free on other drive
  343. key?: type 63                                ;Display help screen
  344. keyaltK: type 0,37                           ;Color changes
  345. keyL: type 76                                ;List indicated file
  346. keyctrlL: type 12                            ;Display program limits
  347. keyM: type 77                                ;Move tagged file
  348. keyP: type 80,"LPT1:",13                     ;Print tagged files
  349. keyR: type 82                                ;Rename file
  350. keyaltR: type 0,19                           ;Directory rescan
  351. keyS: type 83                                ;Redraw screen
  352. keyaltS: type 0,31                           ;Select and sort files
  353. keyT: type 84                                ;Tag file
  354. keyaltT: type 0,20                           ;Tag all files
  355. keyU: type 85                                ;Untag file
  356. keyaltU: type 0,22                           ;Untag all files
  357. keyctrlV: type 22                            ;Volume ID toggle
  358. keyX: type 88,13                             ;Execute file
  359. keyaltX: type 0,45                           ;Execute file with I/O redirect
  360. keycr: type 13                               ;List all files
  361.  
  362. nul: nothing
  363.  
  364. ; The end
  365.